﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assignment2.Conditions;
using Assignment2.States;

namespace Assignment2.Transitions
{
    class BoringToPlayingTransition : Transition
    {
        public BoringToPlayingTransition(ref Integer boringValue, ref Integer hungryValue, ref Integer toyValue, ref Integer foodValue, ref Integer idleTime)
            : base()
        {
            condition = new IsGreaterThanCondition(toyValue, new Integer(0));
        }

        public override void updateMember()
        {
            targetState = StateAndTransitionPool.Playing;
        }
    }
}
